/******************************************************************************/
/*                                                                            */
/* !Layer          : SERVICES                                                 */
/*                                                                            */
/* !Component      : MATH                                                     */
/*                                                                            */
/* !Module         : MATH_TRI                                                 */
/* !Description    : Mathematical functions of trigonometry                   */
/*                                                                            */
/* !File           : MATH_TAB.C                                               */
/*                                                                            */
/* !Target         : All                                                      */
/*                                                                            */
/* !Vendor         : Valeo                                                    */
/*                                                                            */
/* Coding language : C                                                        */
/*                                                                            */
/* COPYRIGHT 2006 VALEO                                                       */
/* all rights reserved                                                        */
/*                                                                            */
/******************************************************************************/
/* PVCS Information                                                           */
/* $Archive:   P:/VE_Onduleur_Gen2_Sofraci/LOG/60_ComponentArchive/Archives/COMP_SWC_BSWSH72/MATH_TAB.C_v  $  */
/* $Revision::   1.2          $$Author::   ogarot      $$Date::   20 Feb 2013$*/
/******************************************************************************/
/* !VnrOff :                                                                  */
/******************************************************************************/

#include "Std_Types.h"

#include "MATH_SC.H"
#include "MATH_TRI.H"

/******************************************************************************/
/* GLOBAL DATA DEFINITION                                                     */
/******************************************************************************/

#define MATH_START_SEC_CONST_UNSPECIFIED
#include "MATH_MemMap.h"
                             
/* mathSinusTable                                                             */
const sint16 mathSinusTable[257] =
{
   0,
   804,
   1608,
   2410,
   3212,
   4011,
   4808,
   5602,
   6393,
   7179,
   7962,
   8739,
   9512,
   10278,
   11039,
   11793,
   12539,
   13279,
   14010,
   14732,
   15446,
   16151,
   16846,
   17530,
   18204,
   18868,
   19519,
   20159,
   20787,
   21403,
   22005,
   22594,
   23170,
   23731,
   24279,
   24811,
   25329,
   25832,
   26319,
   26790,
   27245,
   27683,
   28105,
   28510,
   28898,
   29268,
   29621,
   29956,
   30273,
   30571,
   30852,
   31113,
   31356,
   31580,
   31785,
   31971,
   32137,
   32285,
   32412,
   32521,
   32609,
   32678,
   32728,
   32757,
   32767,
   32757,
   32728,
   32678,
   32609,
   32521,
   32412,
   32285,
   32137,
   31971,
   31785,
   31580,
   31356,
   31113,
   30852,
   30571,
   30273,
   29956,
   29621,
   29268,
   28898,
   28510,
   28105,
   27683,
   27245,
   26790,
   26319,
   25832,
   25329,
   24811,
   24279,
   23731,
   23170,
   22594,
   22005,
   21403,
   20787,
   20159,
   19519,
   18868,
   18204,
   17530,
   16846,
   16151,
   15446,
   14732,
   14010,
   13279,
   12539,
   11793,
   11039,
   10278,
   9512,
   8739,
   7962,
   7179,
   6393,
   5602,
   4808,
   4011,
   3212,
   2410,
   1608,
   804,
   0,
   -804,
   -1608,
   -2410,
   -3212,
   -4011,
   -4808,
   -5602,
   -6393,
   -7179,
   -7962,
   -8739,
   -9512,
   -10278,
   -11039,
   -11793,
   -12539,
   -13279,
   -14010,
   -14732,
   -15446,
   -16151,
   -16846,
   -17530,
   -18204,
   -18868,
   -19519,
   -20159,
   -20787,
   -21403,
   -22005,
   -22594,
   -23170,
   -23731,
   -24279,
   -24811,
   -25329,
   -25832,
   -26319,
   -26790,
   -27245,
   -27683,
   -28105,
   -28510,
   -28898,
   -29268,
   -29621,
   -29956,
   -30273,
   -30571,
   -30852,
   -31113,
   -31356,
   -31580,
   -31785,
   -31971,
   -32137,
   -32285,
   -32412,
   -32521,
   -32609,
   -32678,
   -32728,
   -32757,
   -32767,
   -32757,
   -32728,
   -32678,
   -32609,
   -32521,
   -32412,
   -32285,
   -32137,
   -31971,
   -31785,
   -31580,
   -31356,
   -31113,
   -30852,
   -30571,
   -30273,
   -29956,
   -29621,
   -29268,
   -28898,
   -28510,
   -28105,
   -27683,
   -27245,
   -26790,
   -26319,
   -25832,
   -25329,
   -24811,
   -24279,
   -23731,
   -23170,
   -22594,
   -22005,
   -21403,
   -20787,
   -20159,
   -19519,
   -18868,
   -18204,
   -17530,
   -16846,
   -16151,
   -15446,
   -14732,
   -14010,
   -13279,
   -12539,
   -11793,
   -11039,
   -10278,
   -9512,
   -8739,
   -7962,
   -7179,
   -6393,
   -5602,
   -4808,
   -4011,
   -3212,
   -2410,
   -1608,
   -804,
   0
};    

/* mathArcsinusTable                                                          */
const sint16 mathArcsinusTable[257] =
{
   -16384,
   -15079,
   -14538,
   -14121,
   -13769,
   -13459,
   -13178,
   -12918,
   -12677,
   -12449,
   -12234,
   -12028,
   -11831,
   -11642,
   -11460,
   -11284,
   -11113,
   -10947,
   -10785,
   -10628,
   -10474,
   -10324,
   -10177,
   -10033,
   -9892,
   -9754,
   -9618,
   -9484,
   -9352,
   -9223,
   -9095,
   -8970,
   -8845,
   -8723,
   -8602,
   -8483,
   -8365,
   -8249,
   -8133,
   -8019,
   -7907,
   -7795,
   -7684,
   -7575,
   -7466,
   -7359,
   -7252,
   -7147,
   -7042,
   -6938,
   -6835,
   -6732,
   -6631,
   -6530,
   -6429,
   -6330,
   -6231,
   -6133,
   -6035,
   -5938,
   -5842,
   -5746,
   -5650,
   -5556,
   -5461,
   -5367,
   -5274,
   -5181,
   -5089,
   -4997,
   -4905,
   -4814,
   -4723,
   -4633,
   -4542,
   -4453,
   -4363,
   -4274,
   -4186,
   -4097,
   -4009,
   -3922,
   -3834,
   -3747,
   -3660,
   -3573,
   -3487,
   -3401,
   -3315,
   -3229,
   -3144,
   -3059,
   -2974,
   -2889,
   -2804,
   -2720,
   -2636,
   -2551,
   -2468,
   -2384,
   -2300,
   -2217,
   -2133,
   -2050,
   -1967,
   -1884,
   -1802,
   -1719,
   -1636,
   -1554,
   -1472,
   -1389,
   -1307,
   -1225,
   -1143,
   -1061,
   -979,
   -897,
   -816,
   -734,
   -652,
   -571,
   -489,
   -408,
   -326,
   -244,
   -163,
   -81 ,
   0,
   81 ,
   163,
   244,
   326,
   408,
   489,
   571,
   652,
   734,
   816,
   897,
   979,
   1061,
   1143,
   1225,
   1307,
   1389,
   1472,
   1554,
   1636,
   1719,
   1802,
   1884,
   1967,
   2050,
   2133,
   2217,
   2300,
   2384,
   2468,
   2551,
   2636,
   2720,
   2804,
   2889,
   2974,
   3059,
   3144,
   3229,
   3315,
   3401,
   3487,
   3573,
   3660,
   3747,
   3834,
   3922,
   4009,
   4097,
   4186,
   4274,
   4363,
   4453,
   4542,
   4633,
   4723,
   4814,
   4905,
   4997,
   5089,
   5181,
   5274,
   5367,
   5461,
   5556,
   5650,
   5746,
   5842,
   5938,
   6035,
   6133,
   6231,
   6330,
   6429,
   6530,
   6631,
   6732,
   6835,
   6938,
   7042,
   7147,
   7252,
   7359,
   7466,
   7575,
   7684,
   7795,
   7907,
   8019,
   8133,
   8249,
   8365,
   8483,
   8602,
   8723,
   8845,
   8970,
   9095,
   9223,
   9352,
   9484,
   9618,
   9754,
   9892,
   10033,
   10177,
   10324,
   10474,
   10628,
   10785,
   10947,
   11113,
   11284,
   11460,
   11642,
   11831,
   12028,
   12234,
   12449,
   12677,
   12918,
   13178,
   13459,
   13769,
   14121,
   14538,
   15079,
   16384
};
   
/* mathArctangentTable1                                                       */
const uint16 mathArctangenteTable1[257] =
{
   0,
   41,
   81,
   122,
   163,
   204,
   244,
   285,
   326,
   367,
   407,
   448,
   489,
   529,
   570,
   610,
   651,
   692,
   732,
   773,
   813,
   854,
   894,
   935,
   975,
   1015,
   1056,
   1096,
   1136,
   1177,
   1217,
   1257,
   1297,
   1337,
   1377,
   1417,
   1457,
   1497,
   1537,
   1577,
   1617,
   1656,
   1696,
   1736,
   1775,
   1815,
   1854,
   1894,
   1933,
   1973,
   2012,
   2051,
   2090,
   2129,
   2168,
   2207,
   2246,
   2285,
   2324,
   2363,
   2401,
   2440,
   2478,
   2517,
   2555,
   2593,
   2632,
   2670,
   2708,
   2746,
   2784,
   2822,
   2860,
   2897,
   2935,
   2973,
   3010,
   3047,
   3085,
   3122,
   3159,
   3196,
   3233,
   3270,
   3307,
   3344,
   3380,
   3417,
   3453,
   3490,
   3526,
   3562,
   3598,
   3634,
   3670,
   3706,
   3742,
   3778,
   3813,
   3849,
   3884,
   3919,
   3955,
   3990,
   4025,
   4060,
   4095,
   4129,
   4164,
   4198,
   4233,
   4267,
   4302,
   4336,
   4370,
   4404,
   4438,
   4471,
   4505,
   4538,
   4572,
   4605,
   4639,
   4672,
   4705,
   4738,
   4771,
   4803,
   4836,
   4868,
   4901,
   4933,
   4966,
   4998,
   5030,
   5062,
   5093,
   5125,
   5157,
   5188,
   5220,
   5251,
   5282,
   5313,
   5344,
   5375,
   5406,
   5437,
   5467,
   5498,
   5528,
   5558,
   5589,
   5619,
   5649,
   5679,
   5708,
   5738,
   5768,
   5797,
   5826,
   5856,
   5885,
   5914,
   5943,
   5972,
   6000,
   6029,
   6057,
   6086,
   6114,
   6142,
   6171,
   6199,
   6226,
   6254,
   6282,
   6310,
   6337,
   6365,
   6392,
   6419,
   6446,
   6473,
   6500,
   6527,
   6554,
   6580,
   6607,
   6633,
   6660,
   6686,
   6712,
   6738,
   6764,
   6790,
   6815,
   6841,
   6867,
   6892,
   6917,
   6943,
   6968,
   6993,
   7018,
   7043,
   7067,
   7092,
   7117,
   7141,
   7166,
   7190,
   7214,
   7238,
   7262,
   7286,
   7310,
   7334,
   7357,
   7381,
   7405,
   7428,
   7451,
   7474,
   7498,
   7521,
   7544,
   7566,
   7589,
   7612,
   7634,
   7657,
   7679,
   7702,
   7724,
   7746,
   7768,
   7790,
   7812,
   7834,
   7856,
   7877,
   7899,
   7920,
   7942,
   7963,
   7984,
   8005,
   8026,
   8047,
   8068,
   8089,
   8110,
   8130,
   8151,
   8171,
   8192
};

/* mathArctangentTable2                                                       */
const uint16 mathArctangenteTable2[257] =
{
   8192,
   8352,
   8508,
   8659,
   8805,
   8946,
   9084,
   9217,
   9346,
   9471,
   9593,
   9711,
   9825,
   9936,
   10044,
   10149,
   10251,
   10350,
   10446,
   10539,
   10630,
   10718,
   10804,
   10888,
   10969,
   11048,
   11125,
   11200,
   11273,
   11345,
   11414,
   11482,
   11548,
   11612,
   11675,
   11736,
   11796,
   11854,
   11912,
   11967,
   12022,
   12075,
   12127,
   12177,
   12227,
   12276,
   12323,
   12370,
   12415,
   12459,
   12503,
   12546,
   12587,
   12628,
   12668,
   12708,
   12746,
   12784,
   12821,
   12857,
   12892,
   12927,
   12961,
   12995,
   13028,
   13060,
   13092,
   13123,
   13153,
   13183,
   13213,
   13242,
   13270,
   13298,
   13326,
   13353,
   13379,
   13405,
   13431,
   13456,
   13481,
   13505,
   13529,
   13553,
   13576,
   13599,
   13622,
   13644,
   13666,
   13687,
   13708,
   13729,
   13750,
   13770,
   13790,
   13809,
   13829,
   13848,
   13866,
   13885,
   13903,
   13921,
   13939,
   13956,
   13973,
   13990,
   14007,
   14024,
   14040,
   14056,
   14072,
   14088,
   14103,
   14118,
   14133,
   14148,
   14163,
   14177,
   14191,
   14206,
   14220,
   14233,
   14247,
   14260,
   14273,
   14287,
   14299,
   14312,
   14325,
   14337,
   14350,
   14362,
   14374,
   14386,
   14397,
   14409,
   14421,
   14432,
   14443,
   14454,
   14465,
   14476,
   14487,
   14497,
   14508,
   14518,
   14528,
   14539,
   14549,
   14559,
   14568,
   14578,
   14588,
   14597,
   14607,
   14616,
   14625,
   14634,
   14643,
   14652,
   14661,
   14670,
   14679,
   14687,
   14696,
   14704,
   14713,
   14721,
   14729,
   14737,
   14745,
   14753,
   14761,
   14769,
   14776,
   14784,
   14792,
   14799,
   14807,
   14814,
   14821,
   14828,
   14836,
   14843,
   14850,
   14857,
   14864,
   14870,
   14877,
   14884,
   14891,
   14897,
   14904,
   14910,
   14917,
   14923,
   14929,
   14936,
   14942,
   14948,
   14954,
   14960,
   14966,
   14972,
   14978,
   14984,
   14990,
   14995,
   15001,
   15007,
   15013,
   15018,
   15024,
   15029,
   15035,
   15040,
   15045,
   15051,
   15056,
   15061,
   15066,
   15071,
   15077,
   15082,
   15087,
   15092,
   15097,
   15102,
   15106,
   15111,
   15116,
   15121,
   15126,
   15130,
   15135,
   15140,
   15144,
   15149,
   15153,
   15158,
   15162,
   15167,
   15171,
   15175,
   15180,
   15184,
   15188,
   15193,
   15197,
   15201,
   15205,
   15209,
   15213,
   15218,
   15222,
   15226,
   15230
};

/* mathArctangentTable3                                                       */
const uint16 mathArctangenteTable3[257] =
{
   15087,
   15517,
   15733,
   15863,
   15949,
   16011,
   16058,
   16094,
   16123,
   16147,
   16166,
   16183,
   16198,
   16210,
   16221,
   16230,
   16239,
   16247,
   16253,
   16260,
   16265,
   16270,
   16275,
   16279,
   16283,
   16287,
   16291,
   16294,
   16297,
   16300,
   16302,
   16305,
   16307,
   16309,
   16311,
   16313,
   16315,
   16317,
   16319,
   16320,
   16322,
   16323,
   16324,
   16326,
   16327,
   16328,
   16329,
   16331,
   16332,
   16333,
   16334,
   16335,
   16335,
   16336,
   16337,
   16338,
   16339,
   16340,
   16340,
   16341,
   16342,
   16342,
   16343,
   16344,
   16344,
   16345,
   16345,
   16346,
   16346,
   16347,
   16348,
   16348,
   16349,
   16349,
   16349,
   16350,
   16350,
   16351,
   16351,
   16352,
   16352,
   16352,
   16353,
   16353,
   16353,
   16354,
   16354,
   16354,
   16355,
   16355,
   16355,
   16356,
   16356,
   16356,
   16357,
   16357,
   16357,
   16357,
   16358,
   16358,
   16358,
   16358,
   16359,
   16359,
   16359,
   16359,
   16360,
   16360,
   16360,
   16360,
   16360,
   16361,
   16361,
   16361,
   16361,
   16361,
   16362,
   16362,
   16362,
   16362,
   16362,
   16363,
   16363,
   16363,
   16363,
   16363,
   16363,
   16364,
   16364,
   16364,
   16364,
   16364,
   16364,
   16364,
   16365,
   16365,
   16365,
   16365,
   16365,
   16365,
   16365,
   16366,
   16366,
   16366,
   16366,
   16366,
   16366,
   16366,
   16366,
   16366,
   16367,
   16367,
   16367,
   16367,
   16367,
   16367,
   16367,
   16367,
   16367,
   16368,
   16368,
   16368,
   16368,
   16368,
   16368,
   16368,
   16368,
   16368,
   16368,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16369,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16370,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16371,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16372,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16373,
   16374,
   16374,
   16374,
   16374
};   
     
#define MATH_STOP_SEC_CONST_UNSPECIFIED
#include "MATH_MemMap.h"
     
/*------------------------------ end of file ---------------------------------*/
